package com.tandashi.springbootstudy01.service.reflect;

import java.lang.reflect.Constructor;

public class ReflectTest {
    public static void main(String[] args) throws Exception {
        User user = (User)Class.forName("com.tandashi.springbootstudy01.service.reflect.User").newInstance();

        Constructor<User> constructor = User.class.getConstructor();
        User user1 = constructor.newInstance();
    }
}
